﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Srvtools;
using Microsoft.Reporting.WinForms;

namespace R002
{
    public partial class Form1 : InfoForm
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            clientQuery1.Show(this.panel1);

            this.reportViewer1.LocalReport.DataSources.Add(new ReportDataSource("NewDataSet_SCZL", this.idSCZL.RealDataSet.Tables[0]));
        }

        private void btQuery_Click(object sender, EventArgs e)
        {
            clientQuery1.Execute(this.panel1);

            this.reportViewer1.RefreshReport();
        }

        private void btClear_Click(object sender, EventArgs e)
        {
            clientQuery1.Clear(this.panel1);
        }

    }
}

